
//class4_1 获取GPU 设备属性
//取得显卡数量cudaGetDeviceCount()
#include <iostream> 
#include <memory>
#include <cuda_runtime.h>
int main(void)
{
    int device_Count = 0;
    cudaGetDeviceCount(&device_Count);
    if (device_Count == 0)
    {
        printf("There is no available device that support CUDA\n");
    }
    else {
        printf("Detected %d CUDA Capable deveice\n",device_Count); 

    }
    ;
}